/* 头部样式 */
.header {
  height: .88rem;
  background: #fff;
  box-shadow: 0 0.02rem 0.1rem rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  padding: 0 0.3rem;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
}

.header-title {
  font-size: 0.36rem;
  font-weight: bold;
}

/* 内容区域 */
.content {
  margin-top: 0.88rem;
  padding: 0.3rem;
}

/* 卡片列表 */
.card-list {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -0.15rem;
}

.card {
  width: calc(50% - 0.3rem);
  margin: 0.15rem;
  background: #f5f5f5;
  border-radius: 0.2rem;
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: 3rem;
  object-fit: cover;
}

.card-content {
  padding: 0.2rem;
}

.card-title {
  font-size: 0.28rem;
  font-weight: bold;
  margin-bottom: 0.1rem;
}

.card-desc {
  font-size: 0.24rem;
  color: #666;
}

/* 底部导航 */
.nav-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1rem;
  background: #fff;
  display: flex;
  box-shadow: 0 -0.02rem 0.1rem rgba(0, 0, 0, 0.1);
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.nav-icon {
  width: 0.44rem;
  height: 0.44rem;
  margin-bottom: 0.06rem;
}

.nav-text {
  font-size: 0.24rem;
  color: #666;
}

.nav-item.active .nav-text {
  color: #1890ff;
}

.container {
  min-height: 100vh;
  background: url('../images/bg.png') no-repeat;
  background-size: cover;
  padding: 0 0.3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-area {
  margin-top: 2.98rem;
  text-align: center;
}

.logo {
  width: 2.17rem;
  height: auto;
}

.company-name {
  width: 2rem;
  height: auto;
  margin-top: 0.2rem;
}

.survey-title {
  margin-top: 0.34rem;
  margin-bottom: 1.36rem;
  text-align: center;
}

.title-img {
  width: 4rem;
  height: auto;
}

.input-area {
  width: 100%;
  padding: 0 0.3rem;
}

.customer-code {
  width: 100%;
  height: 0.88rem;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 0.44rem;
  padding: 0 0.3rem;
  font-size: 0.28rem;
  color: #333;
}

.customer-code::placeholder {
  color: #999;
}

.submit-btn {
  width: calc(100% - 0.6rem);
  height: 0.88rem;
  color: #ffffff;
  font-size: 0.32rem;
  border: none;
  margin-top: 0.6rem;
  background: #2259A8;
  border-radius: 16px;
}

.bottom-text {
  color: #666;
  font-size: 0.24rem;
  margin-top: 0.6rem;
}

.error-tip {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  top: 1rem;
  background: rgba(255, 77, 79, 0.9);
  color: #fff;
  padding: 0.2rem 0.3rem;
  border-radius: 0.1rem;
  font-size: 0.24rem;
  white-space: nowrap;
  z-index: 100;
  animation: fadeInDown 0.3s ease-out;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translate(-50%, -20px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}